package com.qiuyang.controller;

import com.qiuyang.pojo.Blog;
import com.qiuyang.service.show.ShowBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller

public class ShowTimeController {

    @Autowired
    private ShowBlogService showBlogService;

    @RequestMapping("/time")
    public String time(Model model){
        model.addAttribute("blog",showBlogService.findAllBlog());
        return "blog/time";
    }



}
